/**
 * Created by feifan on 2016/6/17.
 */
var low = require('lowdb');
const db=low(__dirname+'/../data/db.json', { storage: require('lowdb/lib/file-async') });
//db.defaults({articles:[]}).value();
//db.set('art',[1,2,3]).value();
//db.get('articles').push({ id: 1, title: 'lowdb is awesome'}).value();

var songs = db.get('articles').filter({id:1}).value();
console.log(songs);
//console.log(__dirname);